Optimal. Leaf size=30 \[ -\frac {\csc ^2(c+d x) (a+a \sin (c+d x))^4}{2 a^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2786, 75}
\begin {gather*} -\frac {\csc ^2(c+d x) (a \sin (c+d x)+a)^4}{2 a^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 75
Rule 2786
Rubi steps
\begin {align*} \int \cot ^3(c+d x) (a+a \sin (c+d x))^2 \, dx &=\frac {\text {Subst}\left (\int \frac {(a-x) (a+x)^3}{x^3} \, dx,x,a \sin (c+d x)\right )}{d}\\ &=-\frac {\csc ^2(c+d x) (a+a \sin (c+d x))^4}{2 a^2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 28, normalized size = 0.93 \begin {gather*} -\frac {a^2 \csc ^2(c+d x) (1+\sin (c+d x))^4}{2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(93\) vs.
\(2(28)=56\).
time = 0.21, size = 94, normalized size = 3.13
method | result | size |
derivativedivides | \(\frac {a^{2} \left (\frac {\left (\cos ^{2}\left (d x +c \right )\right )}{2}+\ln \left (\sin \left (d x +c \right )\right )\right )+2 a^{2} \left (-\frac {\cos ^{4}\left (d x +c \right )}{\sin \left (d x +c \right )}-\left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )\right )+a^{2} \left (-\frac {\left (\cot ^{2}\left (d x +c \right )\right )}{2}-\ln \left (\sin \left (d x +c \right )\right )\right )}{d}\) | \(94\) |
default | \(\frac {a^{2} \left (\frac {\left (\cos ^{2}\left (d x +c \right )\right )}{2}+\ln \left (\sin \left (d x +c \right )\right )\right )+2 a^{2} \left (-\frac {\cos ^{4}\left (d x +c \right )}{\sin \left (d x +c \right )}-\left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )\right )+a^{2} \left (-\frac {\left (\cot ^{2}\left (d x +c \right )\right )}{2}-\ln \left (\sin \left (d x +c \right )\right )\right )}{d}\) | \(94\) |
risch | \(\frac {a^{2} {\mathrm e}^{2 i \left (d x +c \right )}}{8 d}+\frac {i a^{2} {\mathrm e}^{i \left (d x +c \right )}}{d}-\frac {i a^{2} {\mathrm e}^{-i \left (d x +c \right )}}{d}+\frac {a^{2} {\mathrm e}^{-2 i \left (d x +c \right )}}{8 d}-\frac {2 i a^{2} \left (i {\mathrm e}^{2 i \left (d x +c \right )}+2 \,{\mathrm e}^{3 i \left (d x +c \right )}-2 \,{\mathrm e}^{i \left (d x +c \right )}\right )}{d \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{2}}\) | \(129\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 53, normalized size = 1.77 \begin {gather*} -\frac {a^{2} \sin \left (d x + c\right )^{2} + 4 \, a^{2} \sin \left (d x + c\right ) + \frac {4 \, a^{2} \sin \left (d x + c\right ) + a^{2}}{\sin \left (d x + c\right )^{2}}}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 76 vs.
\(2 (28) = 56\).
time = 0.35, size = 76, normalized size = 2.53 \begin {gather*} \frac {2 \, a^{2} \cos \left (d x + c\right )^{4} - 3 \, a^{2} \cos \left (d x + c\right )^{2} + 3 \, a^{2} - 8 \, {\left (a^{2} \cos \left (d x + c\right )^{2} - 2 \, a^{2}\right )} \sin \left (d x + c\right )}{4 \, {\left (d \cos \left (d x + c\right )^{2} - d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} a^{2} \left (\int 2 \sin {\left (c + d x \right )} \cot ^{3}{\left (c + d x \right )}\, dx + \int \sin ^{2}{\left (c + d x \right )} \cot ^{3}{\left (c + d x \right )}\, dx + \int \cot ^{3}{\left (c + d x \right )}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.62, size = 47, normalized size = 1.57 \begin {gather*} -\frac {a^{2} {\left (\frac {1}{\sin \left (d x + c\right )} + \sin \left (d x + c\right )\right )}^{2} + 4 \, a^{2} {\left (\frac {1}{\sin \left (d x + c\right )} + \sin \left (d x + c\right )\right )}}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 6.67, size = 56, normalized size = 1.87 \begin {gather*} -\frac {a^2\,\left (2\,{\sin \left (c+d\,x\right )}^4+8\,{\sin \left (c+d\,x\right )}^3-{\sin \left (c+d\,x\right )}^2+8\,\sin \left (c+d\,x\right )+2\right )}{4\,d\,{\sin \left (c+d\,x\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________